﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>LoingInfo</title>
    <link href="~/Content/bootstrap.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
</head>
<body>
    <div>
        <div style="width:720px; height:690px;margin-left:340px;">
            <div style="width:720px;height:60px; background-color:#bddc71; position:fixed; width:720px; height:60px; left:340px; top:0%;">
                <label style="font-size:40px; margin-left:15px;"><</label>
                <label style=" margin-left:260px; font-size:20px; color:#ffffff;">个人中心</label>
                <label style=" margin-left:240px;"><img src="/images/house.jpg" alt="Alternate Text" style="width:36px; height:36px;" onclick="Homes()"/></label>
            </div>
            <div>
                <img src="/images/login4.jpg" alt="Alternate Text" style="width:720px; height:300px; margin-top:60px;" />
            </div>
            <div>
                <table>
                    <tr>
                        <td><input type="text" name="name" value="" id="UserName" placeholder="请输入手机号码" class="form-control" style=" margin-top:20px; width:600px; margin-left:50px;" /></td>
                    </tr>
                    <tr>
                        <td><input type="password" name="name" value="" id="UserPwd" placeholder="请输入登录密码" class="form-control" style=" margin-top:120px; width:600px; margin-left:50px; margin-top:30px;"/></td>
                    </tr>
                    
                </table>
                <p style="margin-left:60px; margin-top:20px; color:#808080"><input type="checkbox" name="name" value="" />下次自动登录<a href="#" style="margin-left:420px;">忘记密码</a></p>
                <input type="button" name="name" value="登录" onclick="Logisss()" class="btn btn-success" style="width:600px; margin-left:50px; margin-top:20px;" />
                <p style=" margin-left:60px; margin-top:20px;"><a href="\HosClient\Result">新用户注册</a><a href="#" style=" margin-left:450px;">短信验证码登录</a></p>
            </div>




           
        </div>
    </div>
    <script>
        function Homes()
        {
            location.href = "/HosClient/MainShow";
        }
        function Logisss()
        {
            var phone = $("#UserName").val();
            var pwd = $("#UserPwd").val();
            $.ajax({
                url: '/HosClient/UserLogins',
                type: 'post',
                dataType: 'json',
                data: { phone: phone, pwd: pwd },
                success: function (item) {
                    if (item.code == 1) {
                        alert(item.Message);
                        location.href = "/HosClient/MyInfos";
                    }
                    else {
                        alert(item.message);
                    }
                    return;
                }
            });
        }
    </script>
</body>
</html>
